package org.fastsyncer.manager.listener.mysql.common.glossary.column;

import org.fastsyncer.manager.listener.mysql.common.glossary.Column;

public final class StringColumn implements Column {
	private static final long serialVersionUID = 1009717372407166422L;

	private final byte[] value;

	private StringColumn(byte[] value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return new String(this.value);
	}

	public byte[] getValue() {
		return this.value;
	}

	public static final StringColumn valueOf(byte[] value) {
		return new StringColumn(value);
	}
}
